Skip to content

fix(typing): reject blank conversation ids - #170

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/typing-conversation-id-trim
Jul 30, 2026
Merged

fix(typing): reject blank conversation ids#170
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/typing-conversation-id-trim

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • Trim typing start/stop conversationId values before membership checks and broadcasts.
  • Return the existing missing-id 400 response for whitespace-only ids.
  • Add regression coverage for trimmed start ids and blank start/stop ids.

Validation

  • git diff --check
  • node node_modules\vitest\vitest.mjs run --config %TEMP%\qryptchat-vitest-minimal.config.mjs "src/app/api/typing/route.test.js" (7 tests passed)

I used the same temporary minimal Vitest config needed locally because the repo's default Vitest config currently fails to load through the installed Vite/plugin combination; no dependency files were modified.

@ralyodio
ralyodio merged commit 90abee0 into profullstack:master Jul 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants